#include "Data.hpp"
#include "Hot.hpp"
#include "server.hpp"
#include <thread>

cloud::DataManager *data_;

void HotTest()
{
    cloud::HotManager hot;
    hot.RunModule();
}

void ServerTest()
{
    cloud::Service ser;
    ser.RunModule();
}

int main(int argc, char *argv[])
{
    data_ = new cloud::DataManager();
    std::thread thread_hot_manager(HotTest);
    std::thread thread_service(ServerTest);
    thread_hot_manager.join();
    thread_service.join();

    return 0;
}
